package com.prothink.service.impl;


import com.prothink.dao.ProductSalesVolumeDao;
import com.prothink.entity.ProductSalesVolume;
import com.prothink.service.ProductSalesVolumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductSalesVolumeServiceMpl implements ProductSalesVolumeService {
    @Autowired
    private ProductSalesVolumeDao productSalesVolumeDao;

    @Override
    public List getProductSalesVolume(ProductSalesVolume productSalesVolume) {
        return productSalesVolumeDao.getProductSalesVolume(productSalesVolume);
    }

    @Override
    public Integer addProductSalesVolume(ProductSalesVolume productSalesVolume) {
        return productSalesVolumeDao.addProductSalesVolume(productSalesVolume);
    }

    @Override
    public List getCourseWeekandModSalesVolume(ProductSalesVolume productSalesVolume) {
        return productSalesVolumeDao.getCourseWeekandModSalesVolume(productSalesVolume);
    }

    @Override
    public List getProductOnModViews(ProductSalesVolume productSalesVolume) {
        return productSalesVolumeDao.getProductOnModViews(productSalesVolume);
    }

    @Override
    public List getProductOnWeek(ProductSalesVolume productSalesVolume) {
        return productSalesVolumeDao.getProductOnWeek(productSalesVolume);
    }

    @Override
    public List getBuyProductOnWeek(ProductSalesVolume productSalesVolume) {
        return productSalesVolumeDao.getBuyProductOnWeek(productSalesVolume);
    }
}
